package com.cnblogs.leizia.crm.workbench.dao;

import com.cnblogs.leizia.crm.workbench.domain.Activity;

import java.util.List;

/**
 * @author leizi
 * @create 2021-03-20 23:35
 */
public interface ClueActivityRelationDao {

    /**
     * 获取线索关联的市场活动列表
     *
     * @param clueId
     * @return
     */
    List<Activity> getActivityList(String clueId);

    /**
     * 解除关联
     *
     * @param relevanceId
     * @return
     */
    boolean clueActivityUnRelevance(String relevanceId);

    /**
     * 根据线索id查询关联的市场活动
     *
     * @param clueId
     * @return
     */
    List<Activity> getActivityListById(String clueId);
}
